<html>
<head><meta charset="utf-8"><title>semver-0.11 · t-cargo · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/index.html">t-cargo</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/semver-0.2E11.html">semver-0.11</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="234193641"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/semver-0.11/near/234193641" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jon Gjengset <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/semver-0.2E11.html#234193641">(Apr 12 2021 at 16:57)</a>:</h4>
<p>Hi folks! cargo is currently using <code>semver 0.10</code> as opposed to the latest <code>semver 0.11</code>. I'm guessing the latest release include some kind of backwards-incompatible change from <code>0.10</code> that cargo can't adopt, but it means that <code>cargo</code> currently brings in a number of dependencies that wouldn't otherwise be necessary. In this crate I have that depends on <code>cargo = "0.52", </code>cargo outdated` currently lists:</p>
<div class="codehilite"><pre><span></span><code>Name                       Project                        Compat  Latest                         Kind    Platform
----                       -------                        ------  ------                         ----    --------
chrono-&gt;time               0.1.43                         ---     0.1.44                         Normal  ---
getrandom-&gt;wasi            0.10.2+wasi-snapshot-preview1  ---     0.10.0+wasi-snapshot-preview1  Normal  cfg(target_os = &quot;wasi&quot;)
proc-macro2-&gt;unicode-xid   0.2.1                          ---     Removed                        Normal  ---
quote-&gt;proc-macro2         1.0.26                         ---     Removed                        Normal  ---
semver                     0.10.0                         ---     0.11.0                         Normal  ---
semver-&gt;semver-parser      0.7.0                          ---     0.10.2                         Normal  ---
semver-&gt;serde              1.0.125                        ---     Removed                        Normal  ---
serde-&gt;serde_derive        1.0.125                        ---     Removed                        Normal  ---
serde_derive-&gt;proc-macro2  1.0.26                         ---     Removed                        Normal  ---
serde_derive-&gt;quote        1.0.9                          ---     Removed                        Normal  ---
serde_derive-&gt;syn          1.0.69                         ---     Removed                        Normal  ---
syn-&gt;proc-macro2           1.0.26                         ---     Removed                        Normal  ---
syn-&gt;quote                 1.0.9                          ---     Removed                        Normal  ---
syn-&gt;unicode-xid           0.2.1                          ---     Removed                        Normal  ---
</code></pre></div>
<p>I wonder — might it be reasonable to backport some of the non-breaking changes from <code>0.11</code> into <code>0.10</code> to remove some of these dependencies from cargo itself? Especially something like <code>syn</code> seems like it might cut cargo build times.</p>



<a name="234194776"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/semver-0.11/near/234194776" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eric Huss <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/semver-0.2E11.html#234194776">(Apr 12 2021 at 17:04)</a>:</h4>
<p>Sorry, I'm uncertain how to read that output.  What would otherwise be removed?  Cargo definitely uses serde, syn, quote, etc. for more than just semver.</p>



<a name="234198850"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/semver-0.11/near/234198850" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jon Gjengset <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/semver-0.2E11.html#234198850">(Apr 12 2021 at 17:32)</a>:</h4>
<p>Ah, so, I think <code>cargo outdated</code> is saying that the dependency on those crates _through_ those other crates (e.g., <code>syn</code> through <code>serde_derive</code> through <code>semver</code>) would be removed, but you're right that if we otherwise depend on <code>syn</code>, this wouldn't make much of a difference in practice.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>